﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using umbraco.cms.businesslogic.member;
using System.Web.Script.Services;

namespace ContourStrikesAgain.Resources.Webservices
{
    /// <summary>
    /// Summary description for Members
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
   
    [ScriptService]
    public class Members : System.Web.Services.WebService
    {

        
        [WebMethod]
        [ScriptMethod]
        public bool IsUniqueLogin(string login)
        {
            return Member.GetMemberFromLoginName(login) == null;
        }
    }
}
